package us.nchu.onlineJudger.util;

import com.google.gson.Gson;
import us.nchu.onlineJudger.bean.MqMessage;

public class JsonUtil {

    public static MqMessage stringToAbstractMqMessage(String json) {
        Gson gson = new Gson();
        return gson.fromJson(json, MqMessage.class);
    }
}
